package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class UploadBase{
	boolean[] modified=new boolean[17];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public UploadBase(){}
	public UploadBase(java.lang.Long uploadId,java.lang.Long userId,java.lang.String name,java.lang.String originFilename,java.lang.String extention,java.lang.String filetype,java.lang.Long size,java.util.Date uploadDate,java.lang.Long downloads,java.util.Date lastDownload,java.lang.Integer publicPolicy,java.lang.String physicalFilename,java.lang.String physicalPath,java.lang.String physicalAccess,java.lang.Integer state,java.lang.String comment,java.lang.String categories){
		setUploadId(uploadId);
		setUserId(userId);
		setName(name);
		setOriginFilename(originFilename);
		setExtention(extention);
		setFiletype(filetype);
		setSize(size);
		setUploadDate(uploadDate);
		setDownloads(downloads);
		setLastDownload(lastDownload);
		setPublicPolicy(publicPolicy);
		setPhysicalFilename(physicalFilename);
		setPhysicalPath(physicalPath);
		setPhysicalAccess(physicalAccess);
		setState(state);
		setComment(comment);
		setCategories(categories);
	}
	public void setUploadId(java.lang.Long uploadId){
		if(uploadId!=null) {
			set("uploadId",uploadId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getUploadId(){
		return (java.lang.Long)get("uploadId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setName(java.lang.String name){
		if(name!=null) {
			set("name",name);
			this.modified[2] =true;
		}
	}
	public java.lang.String getName(){
		return (java.lang.String)get("name");
	}
	public void setOriginFilename(java.lang.String originFilename){
		if(originFilename!=null) {
			set("originFilename",originFilename);
			this.modified[3] =true;
		}
	}
	public java.lang.String getOriginFilename(){
		return (java.lang.String)get("originFilename");
	}
	public void setExtention(java.lang.String extention){
		if(extention!=null) {
			set("extention",extention);
			this.modified[4] =true;
		}
	}
	public java.lang.String getExtention(){
		return (java.lang.String)get("extention");
	}
	public void setFiletype(java.lang.String filetype){
		if(filetype!=null) {
			set("filetype",filetype);
			this.modified[5] =true;
		}
	}
	public java.lang.String getFiletype(){
		return (java.lang.String)get("filetype");
	}
	public void setSize(java.lang.Long size){
		if(size!=null) {
			set("size",size);
			this.modified[6] =true;
		}
	}
	public java.lang.Long getSize(){
		return (java.lang.Long)get("size");
	}
	public void setUploadDate(java.util.Date uploadDate){
		if(uploadDate!=null) {
			set("uploadDate",uploadDate);
			this.modified[7] =true;
		}
	}
	public java.util.Date getUploadDate(){
		return (java.util.Date)get("uploadDate");
	}
	public void setDownloads(java.lang.Long downloads){
		if(downloads!=null) {
			set("downloads",downloads);
			this.modified[8] =true;
		}
	}
	public java.lang.Long getDownloads(){
		return (java.lang.Long)get("downloads");
	}
	public void setLastDownload(java.util.Date lastDownload){
		if(lastDownload!=null) {
			set("lastDownload",lastDownload);
			this.modified[9] =true;
		}
	}
	public java.util.Date getLastDownload(){
		return (java.util.Date)get("lastDownload");
	}
	public void setPublicPolicy(java.lang.Integer publicPolicy){
		if(publicPolicy!=null) {
			set("publicPolicy",publicPolicy);
			this.modified[10] =true;
		}
	}
	public java.lang.Integer getPublicPolicy(){
		return (java.lang.Integer)get("publicPolicy");
	}
	public void setPhysicalFilename(java.lang.String physicalFilename){
		if(physicalFilename!=null) {
			set("physicalFilename",physicalFilename);
			this.modified[11] =true;
		}
	}
	public java.lang.String getPhysicalFilename(){
		return (java.lang.String)get("physicalFilename");
	}
	public void setPhysicalPath(java.lang.String physicalPath){
		if(physicalPath!=null) {
			set("physicalPath",physicalPath);
			this.modified[12] =true;
		}
	}
	public java.lang.String getPhysicalPath(){
		return (java.lang.String)get("physicalPath");
	}
	public void setPhysicalAccess(java.lang.String physicalAccess){
		if(physicalAccess!=null) {
			set("physicalAccess",physicalAccess);
			this.modified[13] =true;
		}
	}
	public java.lang.String getPhysicalAccess(){
		return (java.lang.String)get("physicalAccess");
	}
	public void setState(java.lang.Integer state){
		if(state!=null) {
			set("state",state);
			this.modified[14] =true;
		}
	}
	public java.lang.Integer getState(){
		return (java.lang.Integer)get("state");
	}
	public void setComment(java.lang.String comment){
		if(comment!=null) {
			set("comment",comment);
			this.modified[15] =true;
		}
	}
	public java.lang.String getComment(){
		return (java.lang.String)get("comment");
	}
	public void setCategories(java.lang.String categories){
		if(categories!=null) {
			set("categories",categories);
			this.modified[16] =true;
		}
	}
	public java.lang.String getCategories(){
		return (java.lang.String)get("categories");
	}
}
